package io.mya.modules.customer.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
 * 用户的实体类 App端和后台统一用这个
 * @author shican
 *
 */
public class CustomerEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	private Long id;//主键
	private String username;//用户名
	private String mail;//邮箱
	private String phone;//手机号
	private String invitecode;//邀请码
	private Double candycount;//糖果币的数量
	private Integer status;//是否显示  1:显示  -99：删除
	private Integer type;//1:启用  2:禁用
	private String passwd;//密码
	private Long promoterId;//父id
	private String cusname;//用户姓名
	private Date creattime;//注册日期
	private Date logintime;//最近登入日期
	private String sjname;//上级名字
	private String sjusername;//上级帐号
	private String token;//token
	private Integer ordercount;//订单总数
	private BigDecimal sumcharge;//订单总数
	
	public Integer getOrdercount() {
		return ordercount;
	}
	public void setOrdercount(Integer ordercount) {
		this.ordercount = ordercount;
	}
	public BigDecimal getSumcharge() {
		return sumcharge;
	}
	public void setSumcharge(BigDecimal sumcharge) {
		this.sumcharge = sumcharge;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getSjname() {
		return sjname;
	}
	public void setSjname(String sjname) {
		this.sjname = sjname;
	}
	public String getSjusername() {
		return sjusername;
	}
	public void setSjusername(String sjusername) {
		this.sjusername = sjusername;
	}
	public String getCusname() {
		return cusname;
	}
	public void setCusname(String cusname) {
		this.cusname = cusname;
	}
	public Date getCreattime() {
		return creattime;
	}
	public void setCreattime(Date creattime) {
		this.creattime = creattime;
	}
	public Date getLogintime() {
		return logintime;
	}
	public void setLogintime(Date logintime) {
		this.logintime = logintime;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getInvitecode() {
		return invitecode;
	}
	public void setInvitecode(String invitecode) {
		this.invitecode = invitecode;
	}
	
	public Double getCandycount() {
		return candycount;
	}
	public void setCandycount(Double candycount) {
		this.candycount = candycount;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public Long getPromoterId() {
		return promoterId;
	}
	public void setPromoterId(Long promoterId) {
		this.promoterId = promoterId;
	}
	
}
